<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <title>Panel de Administraci&oacute;n</title>
        <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
        <?php
        echo $this->Html->css('general');
        echo $html->css('pf.view');
        echo $html->css(array('jquery.fancybox-1.3.4'), 'stylesheet', array('media' => 'screen'));
	echo $this->Html->script('jquery');
        echo $this->Html->script('jquery.fancybox-1.3.4.pack');
        echo $this->Html->script('jquery.easing-1.3.pack');
        echo $this->Html->script('jquery.mousewheel-3.0.4.pack');
        echo $this->Html->script('fancybox.impl');
        echo $scripts_for_layout;
        
        ?>


        <?php
        if (isset($javascript)):

            echo $javascript->link('tiny_mce/tiny_mce.js');

        endif;
        ?>


    </head>

    <body>
        <!--[if !IE]>start wrapper<![endif]-->
        <div id="wrapper">
            <!--[if !IE]>start head<![endif]-->
            <div id="head">

                <!--[if !IE]>start logo and user details<![endif]-->
                <div id="logo_user_details">
                    <h1 id="logo"><?php echo $html->link(__('Panel de Administración Asodeco', true), array('controller' => 'pages', 'action' => 'admin_index')); ?></h1>
                    <!--[if !IE]>start user details<![endif]-->
                    <div id="user_details">
                        <ul id="user_details_menu">
                            <li>Welcome <strong>Administrator</strong></li>
                            <li>
                                <ul id="user_access">
                                    <li class="first"><a href="#">My account</a></li>
                                    <li class="last"><a href="#">Log out</a></li>
                                </ul>
                            </li>

                        </ul>
                        <div id="server_details">
                            <dl>
                                <dt>Last login ip :</dt>
                                <dd>192.168.0.15</dd>
                            </dl>
                        </div>
                        <!--                        [if !IE]>start search<![endif]
                                                <div id="search_wrapper">
                                                    <form action="#">
                                                        <fieldset>
                                                            <label>
                                                                <input class="text" name="" type="text" />
                                                            </label>
                                                            <span class="go"><input name="" type="submit" /></span>
                                                        </fieldset>
                                                    </form>
                                                    <ul id="search_wrapper_menu">
                                                        <li class="first"><a href="#">Advanced Search</a></li>

                                                    </ul>
                                                </div>
                                                [if !IE]>end search<![endif]
                                            </div>-->

                        <!--[if !IE]>end user details<![endif]-->



                    </div>
                </div>

                <!--[if !IE]>end logo end user details<![endif]-->



                <!--[if !IE]>start menus_wrapper<![endif]-->
                <div id="menus_wrapper">





                    <div id="main_menu">
                        <ul>
                            <li><?php echo $html->linkAdmin(__('User', true), array('controller' => 'users', 'action' => 'index'),array("class" => ($controller == "Users" ? "selected" : ""))); ?></li>
                            <li><?php echo $html->linkAdmin(__('Empresas', true), array('controller' => 'empresas', 'action' => 'index'),array("class" => ($controller == "Empresas" ? "selected" : ""))); ?></li>
                            <li><?php echo $html->linkAdmin(__('Estudiantes', true), array('controller' => 'estudiantes', 'action' => 'index'),array("class" => ($controller == "Estudiantes" ? "selected" : ""))); ?></li>
<!--                            <li><?php echo $html->linkAdmin(__('Groups', true), array('controller' => 'groups', 'action' => 'index'),array("class" => ($controller == "Groups" ? "selected" : ""))); ?></li>-->
                            <li><?php echo $html->linkAdmin(__('Articulos', true), array('controller' => 'articulos', 'action' => 'index'),array("class" => ($controller == "Articulos" ? "selected" : ""))); ?></li>
                            <li><?php echo $html->linkAdmin(__('Galeria', true), array('controller' => 'categories', 'action' => 'index'),array("class" => ($controller == "Categories" ? "selected" : ""))); ?></li>
                        </ul>
                    </div>
                    <?php
                    if ($controller == 'Articulos') {
                        ?>
                        <div id="sec_menu">
                            <ul>
                            <li><?php echo $html->linkAdmin(__('Asodeco', true), array('controller' => 'articulos', 'action' => 'index','Asodeco')); ?></li>
                            <li><?php echo $html->linkAdmin(__('Funciones', true), array('controller' => 'articulos', 'action' => 'index','Funciones')); ?></li>
                            <li><?php echo $html->linkAdmin(__('Programas', true), array('controller' => 'articulos', 'action' => 'index','Programas')); ?></li>
                            <li><?php echo $html->linkAdmin(__('Colaborar', true), array('controller' => 'articulos', 'action' => 'index','Colaborar')); ?></li>
                            <li><?php echo $html->linkAdmin(__('Profesionales', true), array('controller' => 'articulos', 'action' => 'index','Profesionales')); ?></li>
                            <li><?php echo $html->linkAdmin(__('Eventos', true), array('controller' => 'articulos', 'action' => 'index','Eventos')); ?></li>
                            </ul>
                        </div>

                        <?php
                    }
                    ?>

                    <!--                    -->
                </div>
                <!--[if !IE]>end menus_wrapper<![endif]-->



            </div>
            <!--[if !IE]>end head<![endif]-->

            <!--[if !IE]>start content<![endif]-->
            <div id="content">





                <!--[if !IE]>start page<![endif]-->
                <div id="page">
                    <div class="inner">

                        <?php echo $this->Session->flash(); ?>

                        <?php echo $content_for_layout; ?>




                    </div>
                </div>

                <!--                <div id="sidebar">






                                </div>-->


            </div>
        </div>

        <!--[if !IE]>end wrapper<![endif]-->

        <!--[if !IE]>start footer<![endif]-->
        <div id="footer">

        </div>
        <!--[if !IE]>end footer<![endif]-->

    </body>
</html>
